-
Notifications
You must be signed in to change notification settings - Fork 11
WordPressComSiteInfo: update setting hasJetpack from remote response
#110
Conversation
…e change of API call.
|
I just tested on WPiOS, but signing in with site address didn't work for me on the latest Update: it was due to a |
|
@jaclync I just tested with WooCommerce and for this store: To be fair, that is the same result I get when trying to log in with our Also, the colour palette has changed completely, this is what we have on develop right now: |
|
@ctarda thanks for testing!
Hmm are you able to sign in with the same address in production from the App Store? Also, could you try again including
Yep if we update the authenticator pod to the latest with color changes (still in beta), then we'd update the colors for the new color variables ( |
|
@jaclync , I'm going to review and test soon but just a small comment on the description of this issue:
We actually switched from |
@yaelirub my bad! Just updated the PR description :) |
yaelirub
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested on WPiOS by checking out the branch issue/wcios-1113-authenticator-sign-in-site-address-testing
Login worked with user and password and with site.
|
@jaclync sorry for the delay. I still can not login to store.ctarda.com, neither with nor without the scheme, but I can not do it in production either (same error) I tested with a different site, without a subdomain and it worked. |
ctarda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
thanks for reviewing & testing! 😃 merging now and closing the testing PRs right after |




Fixes woocommerce/woocommerce-ios#1113
WordPressAuthenticatorversion woocommerce/woocommerce-ios#1118WordPressAuthenticatorPR branch WordPress-iOS#12170Background
In this PR, we switched the API call to fetch site info during site address sign in flow from
fetchSiteInfotofetchUnauthenticatedSiteInfoForAddressin order to accommodate both public and private sites (fetchSiteInfoonly works for public sites). However, the responses from these two calls are very different.With
fetchSiteInfo(what we called before for WP.com sites), the response is like:And with
fetchUnauthenticatedSiteInfoForAddress, the response looks like:Originally, the site info’s
hasJetpackis decoded from the response’sjetpackfield, but now this info lives in the response'shasJetpackfield. Thus, site info’shasJetpackfield is always false.This is not a problem in WPiOS because WPiOS does not check any other fields in the site info before proceeding to the next screen vs. WCiOS only continues when site info's
hasJetpackfield is true in the authenticator delegate method. That’s why the site address is not considered valid and stuck on the site address screen in WCiOS.Changes
hasJetpackfield inWordPressComSiteInfofrom remote response'sjetpackfield tohasJetpackfieldname,url,icon), but I'd like to keep this PR small to just fix the sign in issue in WCiOSTesting
In WCiOS branch
In WPiOS branch